package com.cans.security.properties;

/**
 * @author: cans
 * @date: 2017/11/12
 * @description: 浏览器配置
 */
public class BrowserProperties {

    private SessionProperties session = new SessionProperties();

    /**
     * SSO服务地址
     */
    private String ssoServerUrl;
    /**
     * 注册页面
     */
    private String signUpUrl = "/signUp.html";

    /**
     * 登陆页面
     */
    private String loginPage = "/signIn.html";

    /**
     * 默认登录入口URL
     */
    private String loginUrl = "/login";
    /**
     * 默认登出URL
     */
    private String logoutUrl = "/logout";
    /**
     * 有效时间 毫秒
     */
    private int rememberMeSeconds = 3600;

    /**
     * 登陆返回方式
     * @return
     */
    private LoginResponseType loginResponse = LoginResponseType.JSON;

    public LoginResponseType getLoginResponse() {
        return loginResponse;
    }

    public void setLoginResponse(LoginResponseType loginResponse) {
        this.loginResponse = loginResponse;
    }

    public SessionProperties getSession() {
        return session;
    }

    public void setSession(SessionProperties session) {
        this.session = session;
    }

    public String getSignUpUrl() {
        return signUpUrl;
    }

    public void setSignUpUrl(String signUpUrl) {
        this.signUpUrl = signUpUrl;
    }

    public String getLoginPage() {
        return loginPage;
    }

    public void setLoginPage(String loginPage) {
        this.loginPage = loginPage;
    }

    public int getRememberMeSeconds() {
        return rememberMeSeconds;
    }

    public void setRememberMeSeconds(int rememberMeSeconds) {
        this.rememberMeSeconds = rememberMeSeconds;
    }

    public String getLoginUrl() {
        return loginUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    public String getLogoutUrl() {
        return logoutUrl;
    }

    public void setLogoutUrl(String logoutUrl) {
        this.logoutUrl = logoutUrl;
    }

    public String getSsoServerUrl() {
        return ssoServerUrl;
    }

    public void setSsoServerUrl(String ssoServerUrl) {
        this.ssoServerUrl = ssoServerUrl;
    }
}
